from django.urls import path, re_path

from demo import views
from demo.views import AddArticleView, ArticleDetailView, ArticleUserView, ArticleUpdateView, ArticleDeleteView

urlpatterns = [
   # path('test123/<str:in>',views.test),
   # ln参数保存abc值 键值对格式 字典格式
   # path('test123/<int:in>',views.test),
   # path("test/<slug:abd>/",views.test),
   # path("test/<uuid:abc>/",views.test),
   # path("test/<path:abc>/",views.test),
   # path('Tv/',views.Tv)
   # re_path('^re_TV/(?P<info>[0-9abc]+)/$',views.Tv),
   path("nav/<str:classes>",views.nav),
   path("404/",views.not_find,name='not_find'),
   path('index/',views.index,name='index'),
   path('classes/',views.classes,),
   path('tab_info/',views.tab_info),
   path('article/add/',AddArticleView.as_view(),name='AddArticle'),
   path('article/<int:id>/', ArticleDetailView.as_view(), name='ArticleDetail'),
   path('article/user/', ArticleUserView.as_view(), name='ArticleUser'),
   path('article/update/<int:id>/', ArticleUpdateView.as_view(), name='ArticleUpdate'),
   path('article/delete/<int:id>/', ArticleDeleteView.as_view(), name='ArticleDelete'),
]
